Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[INT-177] Remove username from user #140

Conversation

archessmn
Copy link
Member

The user username field is unique, causing user creation to fail if the email prefix (anything before the "@") is used by another user. This made sense when only allowing google login from @york.ac.uk but causes issues now that login with slack is also available. The username field is unused everywhere except for Sentry, where it is used alongside the email it is derived from, and so is not needed.

@jenkins-ystv
Copy link

jenkins-ystv bot commented Sep 4, 2024

Deployed a preview of this PR to https://pr-140-internal.dev.ystv.co.uk

Copy link
Member

@markspolakovs markspolakovs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

seems legit

@@ -25,7 +25,6 @@ export default async function AuthenticatedLayout({

Sentry.setUser({
id: user.user_id,
username: user.username,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just double-check in the Sentry docs that it isn't required, then go ahead and merge

@archessmn archessmn merged commit 9821c15 into main Sep 4, 2024
3 of 4 checks passed
@archessmn archessmn deleted the int-177-sign-in-fails-if-your-emails-prefix-matches-another-user branch September 4, 2024 19:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants